import React from 'react';
import { WeaLocaleProvider, WeaAlertPage } from 'ecCom';

const getLabel = WeaLocaleProvider.getLabel;

const WeaPortalAlert = (props) => {
  if (props.status == -1) {
    return (
      <div style={{ position: 'relative', width: '100%', height: '100%', backgroundColor: '#fff' }}>
        <WeaAlertPage ecId={`${this && this.props && this.props.ecId || ''}_WeaAlertPage@ivglqb`}>
          <div style={{ color: '#000' }}>{getLabel(2012, '对不起，您暂时没有权限！')}</div>
        </WeaAlertPage>
      </div>
    );
  }
    return null;
};

export default WeaPortalAlert;
